import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei'] # 显示中文
count_classes = pd.value_counts(df['label']，sort=True).sort_index()
count_classes.plot(kind='bar')# 柱形图
plt.title("话题分布")
plt.xlabel("类别")
plt.ylabel("频率")
plt.show()
print(count_classes)
